﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Calendarizacion_URL
{
    public partial class FormPensum : Form
    {
        Form padre;
        public FormPensum(Form padre, int opcion)
        {
            InitializeComponent();
            this.padre = padre;
            if (opcion == 1)
            {
                groupBox1.Visible = true;
                groupBox3.Visible = false;
            }
            else
            {
                groupBox3.Visible = true;
                groupBox1.Visible = false;
            }
        }

        private void desactivarPensumToolStripMenuItem_Click(object sender, EventArgs e)
        {

            groupBox1.Visible = true;
            groupBox3.Visible = false;
        }

        private void editarPensumToolStripMenuItem_Click(object sender, EventArgs e)
        {

            groupBox1.Visible = false;
            groupBox3.Visible = true;

        }

        private void salirToolStripMenuItem_Click(object sender, EventArgs e)
        {
            padre.Enabled = true;
            this.Dispose();
        }
    }
}
